package test;

import commonUtils.HttpHelper;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class test1 {

    public static void main(String[] args) {
//        HttpHelper.sendGet("http://121.43.63.189:18080");
        //生成map集合存OA表单上获取到的数据
        Map<String, Object> map = new HashMap<>();
        //生成map存上下文对象
        Map<String, String> context = new HashMap<>();
        //生成map存表单数据
        Map<String, Object> headdto = new HashMap<>();
        context.put("CultureName", "zh-CN");
        context.put("OrgCode", "10");
        context.put("UserCode", "2306040");
        context.put("EntCode", "04");
        map.put("context", context);
        map.put("biztype", "PRCreate");
        headdto.put("Org", "10");
        headdto.put("CreateBy", "2306040");
        headdto.put("Dept", "05");
        headdto.put("DocType", "PR2");
        headdto.put("Operators", "2306040");
        headdto.put("CreateDate","2024-06-02");
        headdto.put("Private1", "123");
        headdto.put("Private3", "325971");
        headdto.put("Private4", "PR202406020031");
        headdto.put("Private5", "生产辅料(非常规)类采购");
        List<Map<String, Object>> mxb = new ArrayList<>();
        Map<String, Object> mxbh = new HashMap<>();
        mxbh.put("ItemCode", "1.1.01.000.0001001101");
        mxbh.put("UOM","打样");
        mxbh.put("ReqQTY", "1");
//        mxbh.put("SuggestedPrice", jihuadanjia);
//        mxbh.put("Pub6",bz);
//        mxbh.put("RequiredDeliveryDate",yaoqiudaohuo);
        //将明细表行数据存入明细表
        mxb.add(mxbh);
    }
}
